home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / ien / ien-142 < prev    next >
Text File  |  1988-12-01  |  3KB  |  119 lines

  1.  
  2.  
  3. IEN 142                                             K. Harrenstien - SRI
  4.                                                          J. Postel - ISI
  5.                                                               April 1980
  6.  
  7.  
  8.  
  9.                               Time Server
  10.  
  11.  
  12.  
  13.  
  14. This note describes the Time Server protocol.  This protocol provides a
  15. site-independent, machine readable date and time.
  16.  
  17. One motivation arises from the fact that not all systems have a
  18. date/time clock, and all are subject to occasional human or machine
  19. error.  The use of time-servers makes it possible to quickly confirm or
  20. correct a system's idea of the time, by making a brief poll of several
  21. independent sites on the network.
  22.  
  23. This protocol may be used either above the Transmission Control Protocol
  24. (TCP) [1] or above the User Datagram Protocol (UDP) [2].
  25.  
  26. When used via TCP the time service works as follows:
  27.  
  28.    S: Listen on port 37 (45 octal).
  29.  
  30.    U: Connect to port 37.
  31.  
  32.    S: Send the time as a 32 bit binary number.
  33.  
  34.    U: Receive the time.
  35.  
  36.    U: Close the connection.
  37.  
  38.    S: Close the connection.
  39.  
  40.    The server listens for a connection on port 37.  When the connection
  41.    is established, the server returns a 32-bit time value and closes the
  42.    connection.  If the server is unable to determine the time at its
  43.    site, it should either refuse the connection or close it without
  44.    sending anything.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.                                                                 [Page 1]
  60.  
  61.  
  62. IEN 142                                                       April 1980
  63. Time Server
  64.  
  65.  
  66.  
  67. When used via UDP the time service works as follows:
  68.  
  69.    S: Listen on port 37 (45 octal).
  70.  
  71.    U: Send an empty datagram to port 37.
  72.  
  73.    S: Receive the empty datagram.
  74.  
  75.    S: Send a datagram containing the time as a 32 bit binary number.
  76.  
  77.    U: Receive the time datagram.
  78.  
  79.    The server listens for a datagram on port 37.  When a datagram
  80.    arrives, the server returns a datagram containing the 32-bit time
  81.    value.  If the server is unable to determine the time at its site, it
  82.    should discard the arriving datagram and make no reply.
  83.  
  84. The time is the number of seconds since 0000 (midnight) 1 January 1900
  85. GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this
  86. base will serve until the year 2036.  For example, the time
  87. 2,398,291,200 corresponds to 0000 1 Jan 1976 GMT.
  88.  
  89. REFERENCES
  90.  
  91.    [1]  Postel, J., "DOD Standard Transmission Control Protocol",
  92.         IEN 129, USC/Information Sciences Institute, January 1980.
  93.  
  94.    [2]  Postel, J., "Used Datagram Protocol", IEN 88, USC/Information
  95.         Sciences Institute, May 1979.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.                                                                 [Page 2]
  119.